/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ile.DAO;


import ile.Modelo.Marka;
import java.util.List;
import javax.persistence.Query;

/**
 *
 * @author Usuario
 */
public class MarcaMDAO extends DAOAbstract<Marka> {

    public MarcaMDAO(Marka t) {
        super(t);
    }
    
    public List<Marka>buscartodos(){
        Query consulta = this.getEntityManager().createQuery("Select marka from Marka marka");
        return consulta.getResultList();
    }


}
